<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <title>Examples</title>
    <meta name="viewport"
        content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <meta name="description" content="" />
    <meta name="keywords" content="" />
    <link href="" rel="stylesheet" />
</head>

<body>
    <div id="app">
        <ac>
            <p slot="header">我是头部标签</p>
            <div>我是第一个div标签</div>
            <div>我是第二个div标签</div>
            <h1 slot="footer">我是底部标签</h1>
        </ac>
    </div>
    <script src="../vue.js"></script>
    <script>
        Vue.component("ac",{
            template:`<div>
                <header>
                    111
                    <slot name="header"></slot>
                </header>
                <main><slot></slot></main>
                <footer>
                    <slot name="footer"></slot>
                </footer>
            </div>`
        })
        new Vue({
            el: "#app",
            data: {}
        })
    </script>
</body>

</html>